﻿CREATE PROCEDURE [dbo].[UpdateNote]
	@NoteId uniqueidentifier,
	@Name nvarchar(max),
    @Content nvarchar(max),
    @Priority int,
    @IsDeleted bit,
    @LastChanged datetime

AS

	UPDATE Note

	SET 
	 
	 Name = @Name,
	 Content = @Content,
	 Priority = @Priority,
	 IsDeleted = @IsDeleted, 
	 LastChanged = @LastChanged

	WHERE NoteId = @NoteId

RETURN 0